﻿// <copyright file="K3CloudTestController.cs" company="PlaceholderCompany">
// Copyright (c) PlaceholderCompany. All rights reserved.
// </copyright>

namespace MesAPI.Controllers.K3CloudTest
{
    using Microsoft.AspNetCore.Mvc;
    using PublicData;
    using XinjeMesProgram.Entities.Function;

    /// <summary>
    /// K3CloudTestController.
    /// </summary>
    [Route("api/[controller]")]
    [ApiController]
    public class K3CloudTestController : ControllerBase
    {
        /// <summary>
        /// GetK3Info.
        /// </summary>
        /// <returns>.</returns>
        [HttpGet]
        public ResponseModel GetK3Info()
        {
            ResponseModel response = new();

            // MainSortBookModel mainSortBook = XinjeBookingInfo.GetMainSortBook("0X16211462430814");
            int info = MaintenancesQuery.GetFixUnder6("0Y087GL035181656");

            // List<object> list = GetK3CloudApi.GetBD_MATERIAL("8111010007", out string msg);
            // response.SetData(msg, list);
            response.SetData(info);
            return response;
        }
    }
}
